home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMXULSelectCntrlEl.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  176 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMXULSelectCntrlEl.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMXULSelectCntrlEl_h__
  6. #define __gen_nsIDOMXULSelectCntrlEl_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMXULControlElement_h__
  10. #include "nsIDOMXULControlElement.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMXULSelectControlItemElement; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMXULSelectControlElement */
  21. #define NS_IDOMXULSELECTCONTROLELEMENT_IID_STR "59fec127-2a0e-445b-84b5-a66dc90245db"
  22.  
  23. #define NS_IDOMXULSELECTCONTROLELEMENT_IID \
  24.   {0x59fec127, 0x2a0e, 0x445b, \
  25.     { 0x84, 0xb5, 0xa6, 0x6d, 0xc9, 0x02, 0x45, 0xdb }}
  26.  
  27. class NS_NO_VTABLE nsIDOMXULSelectControlElement : public nsIDOMXULControlElement {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULSELECTCONTROLELEMENT_IID)
  31.  
  32.   /* attribute nsIDOMXULSelectControlItemElement selectedItem; */
  33.   NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement * *aSelectedItem) = 0;
  34.   NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement * aSelectedItem) = 0;
  35.  
  36.   /* attribute long selectedIndex; */
  37.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) = 0;
  38.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) = 0;
  39.  
  40.   /* attribute DOMString value; */
  41.   NS_IMETHOD GetValue(nsAString & aValue) = 0;
  42.   NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  43.  
  44.   /* nsIDOMXULSelectControlItemElement appendItem (in DOMString label, in DOMString value); */
  45.   NS_IMETHOD AppendItem(const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval) = 0;
  46.  
  47.   /* nsIDOMXULSelectControlItemElement insertItemAt (in long index, in DOMString label, in DOMString value); */
  48.   NS_IMETHOD InsertItemAt(PRInt32 index, const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval) = 0;
  49.  
  50.   /* nsIDOMXULSelectControlItemElement removeItemAt (in long index); */
  51.   NS_IMETHOD RemoveItemAt(PRInt32 index, nsIDOMXULSelectControlItemElement **_retval) = 0;
  52.  
  53. };
  54.  
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIDOMXULSELECTCONTROLELEMENT \
  57.   NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement * *aSelectedItem); \
  58.   NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement * aSelectedItem); \
  59.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex); \
  60.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex); \
  61.   NS_IMETHOD GetValue(nsAString & aValue); \
  62.   NS_IMETHOD SetValue(const nsAString & aValue); \
  63.   NS_IMETHOD AppendItem(const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval); \
  64.   NS_IMETHOD InsertItemAt(PRInt32 index, const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval); \
  65.   NS_IMETHOD RemoveItemAt(PRInt32 index, nsIDOMXULSelectControlItemElement **_retval); 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  68. #define NS_FORWARD_NSIDOMXULSELECTCONTROLELEMENT(_to) \
  69.   NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement * *aSelectedItem) { return _to GetSelectedItem(aSelectedItem); } \
  70.   NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement * aSelectedItem) { return _to SetSelectedItem(aSelectedItem); } \
  71.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return _to GetSelectedIndex(aSelectedIndex); } \
  72.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return _to SetSelectedIndex(aSelectedIndex); } \
  73.   NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  74.   NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
  75.   NS_IMETHOD AppendItem(const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval) { return _to AppendItem(label, value, _retval); } \
  76.   NS_IMETHOD InsertItemAt(PRInt32 index, const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval) { return _to InsertItemAt(index, label, value, _retval); } \
  77.   NS_IMETHOD RemoveItemAt(PRInt32 index, nsIDOMXULSelectControlItemElement **_retval) { return _to RemoveItemAt(index, _retval); } 
  78.  
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  80. #define NS_FORWARD_SAFE_NSIDOMXULSELECTCONTROLELEMENT(_to) \
  81.   NS_IMETHOD GetSelectedItem(nsIDOMXULSelectControlItemElement * *aSelectedItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedItem(aSelectedItem); } \
  82.   NS_IMETHOD SetSelectedItem(nsIDOMXULSelectControlItemElement * aSelectedItem) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedItem(aSelectedItem); } \
  83.   NS_IMETHOD GetSelectedIndex(PRInt32 *aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedIndex(aSelectedIndex); } \
  84.   NS_IMETHOD SetSelectedIndex(PRInt32 aSelectedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectedIndex(aSelectedIndex); } \
  85.   NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  86.   NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  87.   NS_IMETHOD AppendItem(const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendItem(label, value, _retval); } \
  88.   NS_IMETHOD InsertItemAt(PRInt32 index, const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertItemAt(index, label, value, _retval); } \
  89.   NS_IMETHOD RemoveItemAt(PRInt32 index, nsIDOMXULSelectControlItemElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveItemAt(index, _retval); } 
  90.  
  91. #if 0
  92. /* Use the code below as a template for the implementation class for this interface. */
  93.  
  94. /* Header file */
  95. class nsDOMXULSelectControlElement : public nsIDOMXULSelectControlElement
  96. {
  97. public:
  98.   NS_DECL_ISUPPORTS
  99.   NS_DECL_NSIDOMXULSELECTCONTROLELEMENT
  100.  
  101.   nsDOMXULSelectControlElement();
  102.  
  103. private:
  104.   ~nsDOMXULSelectControlElement();
  105.  
  106. protected:
  107.   /* additional members */
  108. };
  109.  
  110. /* Implementation file */
  111. NS_IMPL_ISUPPORTS1(nsDOMXULSelectControlElement, nsIDOMXULSelectControlElement)
  112.  
  113. nsDOMXULSelectControlElement::nsDOMXULSelectControlElement()
  114. {
  115.   /* member initializers and constructor code */
  116. }
  117.  
  118. nsDOMXULSelectControlElement::~nsDOMXULSelectControlElement()
  119. {
  120.   /* destructor code */
  121. }
  122.  
  123. /* attribute nsIDOMXULSelectControlItemElement selectedItem; */
  124. NS_IMETHODIMP nsDOMXULSelectControlElement::GetSelectedItem(nsIDOMXULSelectControlItemElement * *aSelectedItem)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128. NS_IMETHODIMP nsDOMXULSelectControlElement::SetSelectedItem(nsIDOMXULSelectControlItemElement * aSelectedItem)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* attribute long selectedIndex; */
  134. NS_IMETHODIMP nsDOMXULSelectControlElement::GetSelectedIndex(PRInt32 *aSelectedIndex)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138. NS_IMETHODIMP nsDOMXULSelectControlElement::SetSelectedIndex(PRInt32 aSelectedIndex)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* attribute DOMString value; */
  144. NS_IMETHODIMP nsDOMXULSelectControlElement::GetValue(nsAString & aValue)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148. NS_IMETHODIMP nsDOMXULSelectControlElement::SetValue(const nsAString & aValue)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* nsIDOMXULSelectControlItemElement appendItem (in DOMString label, in DOMString value); */
  154. NS_IMETHODIMP nsDOMXULSelectControlElement::AppendItem(const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* nsIDOMXULSelectControlItemElement insertItemAt (in long index, in DOMString label, in DOMString value); */
  160. NS_IMETHODIMP nsDOMXULSelectControlElement::InsertItemAt(PRInt32 index, const nsAString & label, const nsAString & value, nsIDOMXULSelectControlItemElement **_retval)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* nsIDOMXULSelectControlItemElement removeItemAt (in long index); */
  166. NS_IMETHODIMP nsDOMXULSelectControlElement::RemoveItemAt(PRInt32 index, nsIDOMXULSelectControlItemElement **_retval)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* End of implementation class template. */
  172. #endif
  173.  
  174.  
  175. #endif /* __gen_nsIDOMXULSelectCntrlEl_h__ */
  176.